<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <title>处方笺</title>
</head>
<style type="text/css">
    p {
        font-family:"楷体";
        margin: 0;
        margin-top: 10px;
    }
</style>
<style  media="print" type="text/css">
    .noPrint{DISPLAY: none;}
</style>
<body>
<div>
    <div style="width: 20cm;" align="center">
        <div>
            <label style="font-size: 24px">南京展超丽格诊所</label>
            <br/>
            <label>Drzhou's Cosmetic Dermatology institute</label>
            <br/>
            <br/>
            <table style="width: 100%">
                <tr>
                    <td style="width: 20%"></td>
                    <td style="width: 60%;text-align: center"><label style="font-size: 24px">处方笺</label></td>
                    <td style="width: 20%;">
                        <div style="border: solid 1px;text-align: center;width: 80px;height: 24px">
                            <label>普通处方</label>
                        </div>
                    </td>
                </tr>
            </table>
            <hr/>
            <table style="width: 100%">
                <tr>
                    <td style="width: 33%">
                        <table style="width: 100%">
                            <tr>
                                <td style="width: 50%">姓名</td>
                                <td style="width: 50%"><label th:text="${patient.name}"></label></td>
                            </tr>
                        </table>
                    </td>
                    <td style="width: 33%">
                        <table style="width: 100%">
                            <tr>
                                <td style="width: 50%">性别</td>
                                <td style="width: 50%"><label th:text="${patient.sex}"></label></td>
                            </tr>
                        </table>
                    </td>
                    <td style="width: 33%">
                        <table style="width: 100%">
                            <tr>
                                <td style="width: 50%">年龄</td>
                                <td style="width: 50%"><label th:text="${patient.age}"></label></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="width: 33%">临床诊断</td>
                    <td style="width: 33%">
                        <table style="width: 100%">
                            <tr>
                                <td style="width: 40%">日期</td>
                                <td style="width: 60%"><label th:text="${patient.date}"></label></td>
                            </tr>
                        </table>
                    </td>
                    <td style="width: 33%">
                        <table style="width: 100%">
                            <tr>
                                <td style="width: 30%">病历号</td>
                                <td style="width: 70%"><label th:text="${patient.medicalNumber}"></label></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <hr/>
            <p style="text-align: left">
                <label style="font-size: 30px;font-weight: bold">R:</label>
            </p>
            <br/>
            <!--<table style="width: 100%">-->
                <!--<tr th:each="item : ${items}">-->
                    <!--<td>-->
                        <!--<table style="width: 100%">-->
                            <!--<tr>-->
                                <!--<td style="width: 70%">-->
                                    <!--<input type="checkbox" value="" />&nbsp;<label th:text="${item.name}"></label>-->
                                <!--</td>-->
                                <!--<td style="width: 30%">-->
                                    <!--<label th:text="${item.quantity}"></label>&nbsp;<label th:text="${item.unitName}"></label>-->
                                <!--</td>-->
                            <!--</tr>-->
                            <!--<tr>-->
                                <!--<td style="width: 40%">-->
                                    <!--用法：<label th:text="${item.instructions}"></label>-->
                                <!--</td>-->
                            <!--</tr>-->
                        <!--</table>-->
                    <!--</td>-->
                <!--</tr>-->
            <!--</table>-->
            <table style="width: 100%" th:each="item : ${items}">
                <tr>
                    <td style="width: 70%;padding-left: 5%"><input type="checkbox" value="" /><label th:text="${item.name}"></label></td>
                    <td style="width: 30%;padding-left: 5%"><label th:text="${item.quantity}"></label>&nbsp;&nbsp;次</td>
                </tr>
                <tr>
                    <td style="padding-left: 10%">
                        <br/>
                        <br/>
                        用法：<label th:text="${item.instructions}"></label>
                        <br/>
                        <br/>
                    </td>
                </tr>
            </table>
            <br/>
            <br/>
            <table style="width: 100%">
                <tr>
                    <td style="width: 40%"></td>
                    <td style="width: 33%"></td>
                    <td>医师：<label th:text="${patient.username}"></label></td>
                </tr>
                <tr>
                    <td style="width: 40%"></td>
                    <td style="width: 33%"></td>
                    <td>发药：</td>
                </tr>
                <tr>
                    <td style="width: 40%"></td>
                    <td style="width: 33%"></td>
                    <td>收费：¥&nbsp;<label th:text="${patient.totalPrice}"></label></td>
                </tr>
            </table>
        </div>
    </div>
</div>
</body>
</html>